<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" rel="stylesheet" href="view/default/style/basic.css" />
<link type="text/css" rel="stylesheet" href="view/default/style/member.css" />
<script type="text/javascript" src="view/default/js/ajax.js"></script>
<script type="text/javascript" src="view/default/js/changeAddress.js"></script>
<script type="text/javascript" src="view/default/js/member.js"></script>
<title>在线商城会员中心</title>
</head>
<body>
{include file="default/public/header.html"}
<div id="sait">
    当前位置：<a href="./">首页</a> &gt; 注册会员
</div>

{include file="default/public/member_sidebar.html"}

<div id="main">
    <h2>收货地址管理</h2>
    <table cellspacing="1">
        <tr><th>收货人</th><th>地址</th><th>电子邮件</th><th>邮政编码</th><th>手机号码</th><th>标志建筑</th><th>操作</th></tr>
        {foreach from=$allAddress key=key item=value}    
        <tr><td>{$value->name}</td><td>{$value->address}</td><td>{$value->email}</td><td>{$value->zipcode}</td><td>{$value->phone}</td><td>{$value->building}</td><td>
        {if $value->selected == 1}
        <span style="color:green">已首选</span>
        {else}
        <a href="?a=member&m=selected&id={$value->id}">首选</a>
        {/if} 
        | 修改 | <a href="?a=member&m=deleteAddress&id={$value->id}">删除</a></td></tr>
        {/foreach}
    </table>
    
    <p style="text-align:center;margin:5px 0"><a href="?a=cart&m=flow">[去结算中心]</a></p>
    
    <form action="" name="address" method="post">
        <dl>
            <dd class="address">
                            省 份:<select id="province" name="province"></select>
                            城 市:<select id="city" name="city"></select>
                            区 域:<select id="area" name="area"></select></dd>
            <dd>具体地址:<input type="text" name="address" class="text"></dd>                
            <dd>收 货 人:<input type="text" name="name" class="text" ></dd>
            <dd>电子邮件:<input type="text" name="email" class="text" ></dd>
            <dd>邮政编码:<input type="text" name="zipcode" class="text" ></dd>
            <dd>手机号码:<input type="text" name="phone" class="text" ></dd>
            <dd>标志建筑:<input type="text" name="building" class="text" ></dd>
            <dd><input type="submit" name="send" class="submit" value="" onclick="return checkAddAddress();" /></dd>
        </dl>
    </form>
</div>
{include file='default/public/footer.html'}
</body>
</html>